package al.xc.service;

import al.xc.data.model.wechat.GlobalSessionInfo;

public interface IWechatAuthorService {
    /**
     * 查找微信全局sessonkey
     * @param appid
     * @return
     * @throws Exception
     */
    GlobalSessionInfo find(String appid) throws Exception;

    /**
     * 设置微信全局sessionkey
     * @param appid
     * @param token
     * @param expire
     * @return
     * @throws Exception
     */
    GlobalSessionInfo insert(String appid, String token, Integer expire) throws Exception;
}
